<template>
  <div class="login-back">
    <div class="waveWrapper waveAnimation">
      <div class="login-main">
        <div class="login-top">
          <div class="top-left">
            <img :src="logo3">
            <span>SmartOne</span>
            <!-- <span>FutureCell</span> -->
          </div>
          <div class="top-right">
            <a></a>
            <a></a>
            <a></a>
            <a></a>
          </div>
        </div>
        <div class="right">
          <login></login>
        </div>
        <div class="login-bottom">
          <span>©成都四平软件有限公司 SmartOne® 2019 All rights reserved.</span>
          <!-- <span>©四川赋智赛尔生物技术有限责任公司 FutureCell® 2019 All rights reserved.</span> -->
        </div>
      </div>
      <div class="waveWrapperInner bgTop">
        <div class="wave waveTop"
             :style="{'background-image': `url(${wave_top_copy})`,'opacity': 0.3}"></div>
      </div>
      <div class="waveWrapperInner bgMiddle">
        <div class="wave waveMiddle"
             :style="{'background-image': `url(${wave_mid_copy})`,'opacity': 0.3}"></div>
      </div>
      <div class="waveWrapperInner bgBottom">
        <div class="wave waveBottom"
             :style="{'background-image': `url(${wave_bot_copy})`,'opacity': 0.3}"></div>
      </div>
    </div>
  </div>
</template>

<script>
import login from './login copy'
import logo3 from '../../assets/img/logo3.png'
import wave_top_copy from '../../assets/img/wave-top-copy.png'
import wave_mid_copy from '../../assets/img/wave-mid-copy.png'
import wave_bot_copy from '../../assets/img/wave-bot-copy.png'
export default {
  components: { login },
  data () {
    return {
      logo3,
      wave_top_copy,
      wave_mid_copy,
      wave_bot_copy
    }
  }
}
</script>

<style lang="scss" scoped>
.login-back {
  background-image: linear-gradient(to top, #50c3e6 20%, #008eff 80%);
  height: 100%;
}
.login-bottom {
  position: absolute;
  width: 100%;
  height: 30px;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  span {
    color: #b6c6d4;
    font-size: 12px;
  }
}
.login-top {
  position: absolute;
  width: 100%;
  height: 60px;
  top: 0;
  left: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  padding: 0 230px;
  .top-left,
  .top-right {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
  }
  .top-left {
    font-size: 20px;
    color: #fff;
    span {
      margin-left: 5px;
    }
  }
  .top-right {
    color: #808696;
    font-size: 14px;
    a {
      margin: 0 15px;
    }
  }
}
.login-main {
  width: 400px;
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: space-between;
  .left {
    width: 65%;
    font-size: 32px;
    color: #000;
    margin-top: 117px;
    margin-right: 120px;
  }
  .right {
    width: 35%;
  }
}
@keyframes move_wave {
  0% {
    transform: translateX(0) translateZ(0) scaleY(1);
  }
  50% {
    transform: translateX(-25%) translateZ(0) scaleY(0.55);
  }
  100% {
    transform: translateX(-50%) translateZ(0) scaleY(1);
  }
}
.waveWrapper {
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}
.waveWrapperInner {
  position: absolute;
  width: 100%;
  overflow: hidden;
  height: 100%;
  bottom: -1px;
}
.bgTop {
  z-index: 15;
  opacity: 0.5;
}
.bgMiddle {
  z-index: 10;
  opacity: 0.75;
}
.bgBottom {
  z-index: 5;
}
.wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat no-repeat;
  background-position: 0 bottom;
  transform-origin: center bottom;
}
.waveTop {
  background-size: 50% 100px;
}
.waveAnimation .waveTop {
  animation: move-wave 3s;
  -webkit-animation: move-wave 3s;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}
.waveMiddle {
  background-size: 50% 120px;
}
.waveAnimation .waveMiddle {
  animation: move_wave 10s linear infinite;
}
.waveBottom {
  background-size: 50% 100px;
}
.waveAnimation .waveBottom {
  animation: move_wave 15s linear infinite;
}
</style>